<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>消息管理-发送消息</title>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<script type="text/javascript" language="javascript" src="js/box.js"></script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeCenter" id="personal">
        <div class="location">发送消息</div>
        <div class="titleTabBar bgGreen lineTB">
          <ul id="pm">
            <li class="select"><a href="pm.php?dopost=send">写新消息</a></li>
            <li><a href="pm.php?folder=inbox">收件箱</a></li>
            <li><a href="pm.php?folder=outbox">发件箱</a></li>
            <li><a href="pm.php?folder=track">已发出信息</a></li>
          </ul>
        </div>
        <form class="mTB10 mL10 mR10" action="pm.php" method="post" name="form1">
          <input type='hidden' name='dopost' value='savesend' />
          <table cellspacing="1" class="submit mB10">
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top">发送到：</td>
                <td><input name="msgtoid" type="text" class="text" value="<?php if(!empty($uid)) echo $uid; ?>" size="28" maxlength="20" />
                  填写用户的登录id(网址uid=后面跟的id)</td>
              </tr>
              <tr>
                <td width="15%" align="right" valign="top">标题：</td>
                <td><input name="subject" type="text" class="text" value="" size="50" maxlength="70" />
                  60个字符节以内</td>
              </tr>
              <tr>
                <td width="15%" align="right" valign="top">内容：</td>
                <td><textarea cols="50" name="message" rows="6" style="height:80px;"></textarea>
                  <br />
                  1000个字符以内</td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td width="15%" height="45" align="right" valign="top">&nbsp;</td>
                <td><button class="button2" type="submit">发送</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="dedeRight">
      <!--好友列表 -->
      <script type="text/javascript">
		$(document).ready(function(){
			$(".buddy dt").click(function(){$(this).toggleClass("close");$(this).next("dd").toggle();});
			$(".buddy li").hover(function(){$(this).addClass("hover"); },function(){$(this).removeClass("hover"); });
		});
		</script>
      <div class="titleBar bgGaryImg">
        <h5 class="fLeft">好友列表</h5>
        <span class="fRight"><a href="myfriend.php" title="好友管理">管理</a></span> </div>
      <dl class="buddy overflow mL10 mR10">
        <dt class="buddySort icon">所有好友</dt>
        <dd class="buddyList">
          <ul>
            <?php
          foreach ($friends as $friend)
          {
echo '<li class="thickbox"><span class="fLeft icon16 titOnline"></span>'.$friend['funame'].'</li>';
          }
          ?>
          </ul>
        </dd>
      </dl>
      <hr />
      <!--好友搜索 -->
      <div class="buddySearch textCenter">
        <form action="search.php">
          <input class="text" type="text" name="keyword" value="" style="width:150px;" />
          <button class="button1" type="submit">搜</button>
        </form>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</body>
</html>
